package threads;

import java.io.IOException;
import java.io.Serializable;
import java.net.ServerSocket;

public abstract class ReceptorDados extends Thread implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3581467685727336789L;
	private ServerSocket socket;

	public ReceptorDados(int porta) throws IOException{
		this.socket = new ServerSocket(porta);		
	}
	
	@Override
	public abstract void run();

	public ServerSocket getSocket() {
		return socket;
	}

	public void setSocket(ServerSocket socket) {
		this.socket = socket;
	}
	
}
